<?php

namespace app\utils;

class ApiErrorCode
{
    const SUCCESS = [200, 'SUCCESS'];
    const ERROR = [400, 'ERROR'];

    const ERR_LOGIN_INVALID = [410000, 'Landing overdue'];
    const ERR_AUTH = [400011, 'You do not have permission to access for the time being'];
    const ERR_RULE = [400012, 'Interface is not authorized, you cannot access'];
    //保存token失败
    const ERR_SAVE_TOKEN = [400, 'Failed to save token'];
    //登陆状态不正确
    const ERR_LOGIN_STATUS = [410002, 'The login status is incorrect. Please login again.'];
    //请登陆
    const ERR_LOGIN = [410000, 'Please login'];
}
